package com.zbkj.crmeb.store.controller;

import com.common.PageRequest;
import com.crmeb.core.common.CommonResult;
import com.zbkj.crmeb.chant.request.*;
import com.zbkj.crmeb.store.service.SupplierProductLogService;
import com.zbkj.crmeb.store.service.SyncProductLogsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.common.CommonPage;
import com.common.PageParamRequest;
import com.crmeb.core.common.CommonResult;
import com.crmeb.core.exception.CrmebException;
import com.github.pagehelper.PageInfo;
import com.utils.CrmebUtil;
import com.zbkj.crmeb.category.request.CategoryRequest;
import com.zbkj.crmeb.category.service.CategoryService;
import com.zbkj.crmeb.category.vo.CategoryTreeVo;
import com.zbkj.crmeb.chant.dto.ChannelMerchantDTO;
import com.zbkj.crmeb.chant.dto.ChannelMerchantSupplierDTO;
import com.zbkj.crmeb.chant.response.AccountCenterResponse;
import com.zbkj.crmeb.chant.response.SupplierAccountCenterResponse;
import com.zbkj.crmeb.chant.service.IChannelMerchantAccountService;
import com.zbkj.crmeb.chant.service.IChannelMerchantService;
import com.zbkj.crmeb.chant.vo.ChannelMerchantVO;
import com.zbkj.crmeb.enums.StockAreaTempEnum;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import com.zbkj.crmeb.store.model.SyncProductLogs;
/**
 * 商品下放日志
 * @Description: 
 * @author daigb
 * @date 2021-04-13
 */
@RestController("StoreSyncProductLogsController")
@RequestMapping("api/admin/syncProductLogs")
@Api(tags = "供应商导入商品日志")
public class StoreSyncProductLogsController {
    @Autowired
    SyncProductLogsService syncProductLogsService;

    
    /**
     * 日志列表
     * @Description:  
     * @author daigb 
     * @param @param storeBrandRequest
     * @param @return
     * @return CommonResult<Object>
     * @throws
     */
    @ApiOperation(value = "日志列表")
    @RequestMapping(value = "/list", method = RequestMethod.GET)
    public CommonResult<CommonPage<SyncProductLogs>> merchantList(SyncProductLogsListRequest request){

        PageInfo<SyncProductLogs> pageInfo = syncProductLogsService.syncProductLogsList(request);
        return CommonResult.success(CommonPage.restPage(pageInfo));
    }

}
